package chrisbode.cps142.a2;

public class Ticket2D extends MovieTicket {
	public Ticket2D(String title, int totalSeats, int soldSeats) {
		super(title, totalSeats, soldSeats);
	}

	@Override
	public double getPrice(Patron patronType) {
		if (patronType == Patron.ADULT)
			return 8.50;
		return 4.00;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return this.getTitle() + " (2D) (" + (this.getTotalSeats() - this.getSoldSeats()) + " seat(s))";
	}
}
